﻿<%@ Page Language="C#" MasterPageFile="~/InventoryTracker/MasterPage.master" AutoEventWireup="true" CodeFile="DD.aspx.cs" Inherits="InventoryTracker_DD" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="maincontent" Runat="Server">


<asp:GridView  ID="GridView1"  runat="server"  AutoGenerateColumns="False"  
        CellPadding="4" ForeColor="#333333" 
        GridLines="None" 
        style="top: 298px; left: 32px; position: absolute; height: 168px; width: 254px">

    <RowStyle BackColor="#EFF3FB" />

<Columns>

<asp:BoundField DataField="CategoryID" HeaderText="CategoryID" />

<asp:BoundField DataField="CategoryName" HeaderText="Category Name" />

<asp:TemplateField HeaderText="Products">

<ItemTemplate>

<asp:DropDownList ID="DropDownList1" runat="server" 
        DataSourceID="ItemNamelDataSource1" DataTextField="ItemName" 
        DataValueField="ItemCode">

</asp:DropDownList>

    <asp:SqlDataSource ID="ItemNamelDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
        SelectCommand="SELECT * FROM [MaterialMaster]"></asp:SqlDataSource>

</ItemTemplate>

</asp:TemplateField>

</Columns>

    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
    <EditRowStyle BackColor="#2461BF" />
    <AlternatingRowStyle BackColor="White" />

</asp:GridView>
</asp:Content>

